raar.vectorimagex
Class RAGAgentTrace

java.lang.Object
  extended by vectorimage.GVectorObject
      extended by raar.vectorimagex.RAGAgentTrace
All Implemented Interfaces:
java.io.Serializable

public class RAGAgentTrace
extends GVectorObject

A vector image representation of an agent trace.

See Also:
Serialized Form

Constructor Summary
RAGAgentTrace(RAAgent src)
          Construct this object.
 
Method Summary
 void addTrace(java.awt.geom.Point2D.Double trace)
          Add a trace.
 java.awt.Color getColor()
          Return the trace colour.
 java.awt.Shape getShape()
          Return the shape.
 java.util.Vector getTraces()
          Return the traces.
 boolean isFilled()
          This is a path; draw only the path and not the filling area.
 boolean isPerceivable()
          We cannot see traces with the agent's sensors.
static void setMaximumTraceLength(long l)
          Set the maximum trace length.
 void untrace()
          Delete all traces.
 
Methods inherited from class vectorimage.GVectorObject
createGVectorObject, getObject, getOpacity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RAGAgentTrace

public RAGAgentTrace(RAAgent src)
Construct this object.

Method Detail

getColor

public java.awt.Color getColor()
Return the trace colour.

Overrides:
getColor in class GVectorObject

addTrace

public void addTrace(java.awt.geom.Point2D.Double trace)
Add a trace.


getTraces

public java.util.Vector getTraces()
Return the traces.


untrace

public void untrace()
Delete all traces.


setMaximumTraceLength

public static void setMaximumTraceLength(long l)
Set the maximum trace length.


getShape

public java.awt.Shape getShape()
Return the shape.

Overrides:
getShape in class GVectorObject

isFilled

public boolean isFilled()
This is a path; draw only the path and not the filling area.

Overrides:
isFilled in class GVectorObject

isPerceivable

public boolean isPerceivable()
We cannot see traces with the agent's sensors.